package com.wyx.utils.threadSave;

import com.wyx.pojo.User;

public class ThreadUserInfo {
    private static ThreadLocal<User> threadLocal = new ThreadLocal<>();

    public static User get() {
        User user = threadLocal.get();
        return user;
    }

    public static void set(User user) {
        threadLocal.set(user);
    }

    public static void remove() {
        threadLocal.remove();
    }
}
